mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
fuse: Get rid of bdi_initialized
It is not needed anymore since bdi is initialized whenever superblock exists. CC: Miklos Szeredi <[email protected]> CC: [email protected] Suggested-by: Miklos Szeredi <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
This commit is contained in:
parent
5f7f7543f5
commit
7fbbe972c3
3 changed files with 2 additions and 8 deletions
|
|
@ -382,7 +382,7 @@ static void request_end(struct fuse_conn *fc, struct fuse_req *req)
|
|||
wake_up(&fc->blocked_waitq);
|
||||
|
||||
if (fc->num_background == fc->congestion_threshold &&
|
||||
fc->connected && fc->bdi_initialized) {
|
||||
fc->connected && fc->sb) {
|
||||
clear_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
|
||||
clear_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
|
||||
}
|
||||
|
|
@ -573,8 +573,7 @@ void fuse_request_send_background_locked(struct fuse_conn *fc,
|
|||
fc->num_background++;
|
||||
if (fc->num_background == fc->max_background)
|
||||
fc->blocked = 1;
|
||||
if (fc->num_background == fc->congestion_threshold &&
|
||||
fc->bdi_initialized) {
|
||||
if (fc->num_background == fc->congestion_threshold && fc->sb) {
|
||||
set_bdi_congested(fc->sb->s_bdi, BLK_RW_SYNC);
|
||||
set_bdi_congested(fc->sb->s_bdi, BLK_RW_ASYNC);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -527,9 +527,6 @@ struct fuse_conn {
|
|||
/** Filesystem supports NFS exporting. Only set in INIT */
|
||||
unsigned export_support:1;
|
||||
|
||||
/** Set if bdi is valid */
|
||||
unsigned bdi_initialized:1;
|
||||
|
||||
/** write-back cache policy (default is write-through) */
|
||||
unsigned writeback_cache:1;
|
||||
|
||||
|
|
|
|||
|
|
@ -983,8 +983,6 @@ static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb)
|
|||
/* fuse does it's own writeback accounting */
|
||||
sb->s_bdi->capabilities = BDI_CAP_NO_ACCT_WB | BDI_CAP_STRICTLIMIT;
|
||||
|
||||
fc->bdi_initialized = 1;
|
||||
|
||||
/*
|
||||
* For a single fuse filesystem use max 1% of dirty +
|
||||
* writeback threshold.
|
||||
|
|
|
|||
Loading…
Reference in a new issue