diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2011-05-05 21:10:38 -0600 |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2011-06-08 08:25:23 +0800 |
commit | 846d5a091b0506b75489577cde27f39b37a192a4 (patch) | |
tree | 739bd1e28f86d4620b55401d0cc4b5ab4e44eb91 /fs/nfs | |
parent | b7a2441f9966fe3e1be960a876ab52e6029ea005 (diff) | |
download | op-kernel-dev-846d5a091b0506b75489577cde27f39b37a192a4.zip op-kernel-dev-846d5a091b0506b75489577cde27f39b37a192a4.tar.gz |
writeback: remove .nonblocking and .encountered_congestion
Remove two unused struct writeback_control fields:
.encountered_congestion (completely unused)
.nonblocking (never set, checked/showed in XFS,NFS/btrfs)
The .for_background check in nfs_write_inode() is also removed btw,
as .for_background implies WB_SYNC_NONE.
Reviewed-by: Jan Kara <jack@suse.cz>
Proposed-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/write.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c index e268e3b..dd6a6ce 100644 --- a/fs/nfs/write.c +++ b/fs/nfs/write.c @@ -1564,8 +1564,7 @@ int nfs_write_inode(struct inode *inode, struct writeback_control *wbc) int status; bool sync = true; - if (wbc->sync_mode == WB_SYNC_NONE || wbc->nonblocking || - wbc->for_background) + if (wbc->sync_mode == WB_SYNC_NONE) sync = false; status = pnfs_layoutcommit_inode(inode, sync); |