Btrfs: check file pointer in btrfs_sync_file
authorChris Mason <chris.mason@oracle.com>
Fri, 20 Feb 2009 15:55:10 +0000 (10:55 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 20 Feb 2009 15:55:10 +0000 (10:55 -0500)
commit2cfbd50b536c878e58ab3681c4e944fa3d99b415
treeaf29d7c8a094b0560c3ed04aebacdea23ae1177f
parent2456242530a21cfee82646ebeeda65d3f74faa4c
Btrfs: check file pointer in btrfs_sync_file

fsync can be called by NFS with a null file pointer, and btrfs was
oopsing in this case.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file.c