diff options
author | Christoph Hellwig <hch@lst.de> | 2009-09-30 22:16:51 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2009-12-10 15:02:50 +0100 |
commit | 027cf316afff03d310281709314fbc0899984759 (patch) | |
tree | 48e28adeb9f4690b7db70fdc3ce97bddb0f35a42 /fs/afs | |
parent | 94004ed726f38a841cc51f97c4a3f9eda9fbd0d9 (diff) | |
download | kernel_samsung_smdk4412-027cf316afff03d310281709314fbc0899984759.tar.gz kernel_samsung_smdk4412-027cf316afff03d310281709314fbc0899984759.tar.bz2 kernel_samsung_smdk4412-027cf316afff03d310281709314fbc0899984759.zip |
afs: remove manual O_SYNC handling
generic_file_aio_write already calls into ->fsync to handle O_SYNC/O_DSYNC.
Remove the duplicate manual invocation.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/afs')
-rw-r--r-- | fs/afs/write.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c index 6be1bc31616..5e15a21dbf9 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -671,7 +671,6 @@ ssize_t afs_file_write(struct kiocb *iocb, const struct iovec *iov, struct afs_vnode *vnode = AFS_FS_I(dentry->d_inode); ssize_t result; size_t count = iov_length(iov, nr_segs); - int ret; _enter("{%x.%u},{%zu},%lu,", vnode->fid.vid, vnode->fid.vnode, count, nr_segs); @@ -691,14 +690,6 @@ ssize_t afs_file_write(struct kiocb *iocb, const struct iovec *iov, return result; } - /* return error values for O_SYNC and IS_SYNC() */ - if (IS_SYNC(&vnode->vfs_inode) || iocb->ki_filp->f_flags & O_DSYNC) { - ret = afs_fsync(iocb->ki_filp, dentry, - (iocb->ki_filp->f_flags & __O_SYNC) ? 0 : 1); - if (ret < 0) - result = ret; - } - _leave(" = %zd", result); return result; } |