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)
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>

No differences found