X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Fxfs%2Fxfs_file.c;h=9f7ec15a65222e2fe318e0ab81ac9cca0a664b4a;hb=37b22400f86e83076c8e540b65e8b7e3f1f63e6b;hp=8d214b87f6bb06ed1f7ed204cdfda8da9345172f;hpb=07acfc2a9349a8ce45b236c2624dad452001966b;p=~andy%2Flinux diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index 8d214b87f6b..9f7ec15a652 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c @@ -586,8 +586,11 @@ restart: * lock above. Eventually we should look into a way to avoid * the pointless lock roundtrip. */ - if (likely(!(file->f_mode & FMODE_NOCMTIME))) - file_update_time(file); + if (likely(!(file->f_mode & FMODE_NOCMTIME))) { + error = file_update_time(file); + if (error) + return error; + } /* * If we're writing the file then make sure to clear the setuid and