diff --git a/fs/nfs/file.c b/fs/nfs/file.c index 4560fc2ddb4afd29c33ed44b26ffd30811bb7f7d..ef57a5ae5904663d4ab20c974e920e711f921436 100644 --- a/fs/nfs/file.c +++ b/fs/nfs/file.c @@ -349,7 +349,9 @@ static int nfs_write_end(struct file *file, struct address_space *mapping, unlock_page(page); page_cache_release(page); - return status < 0 ? status : copied; + if (status < 0) + return status; + return copied; } static void nfs_invalidate_page(struct page *page, unsigned long offset)