Home
last modified time | relevance | path

Searched hist:db6ec53b7e0320c8fad27e9a816e50080154bd51 (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/fs/f2fs/
H A Dcheckpoint.cdiff db6ec53b7e0320c8fad27e9a816e50080154bd51 Wed May 29 12:58:45 CDT 2019 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: add a rw_sem to cover quota flag changes

Two paths to update quota and f2fs_lock_op:

1.
- lock_op
| - quota_update
`- unlock_op

2.
- quota_update
- lock_op
`- unlock_op

But, we need to make a transaction on quota_update + lock_op in #2 case.
So, this patch introduces:
1. lock_op
2. down_write
3. check __need_flush
4. up_write
5. if there is dirty quota entries, flush them
6. otherwise, good to go

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
H A Dsuper.cdiff db6ec53b7e0320c8fad27e9a816e50080154bd51 Wed May 29 12:58:45 CDT 2019 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: add a rw_sem to cover quota flag changes

Two paths to update quota and f2fs_lock_op:

1.
- lock_op
| - quota_update
`- unlock_op

2.
- quota_update
- lock_op
`- unlock_op

But, we need to make a transaction on quota_update + lock_op in #2 case.
So, this patch introduces:
1. lock_op
2. down_write
3. check __need_flush
4. up_write
5. if there is dirty quota entries, flush them
6. otherwise, good to go

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
H A Df2fs.hdiff db6ec53b7e0320c8fad27e9a816e50080154bd51 Wed May 29 12:58:45 CDT 2019 Jaegeuk Kim <jaegeuk@kernel.org> f2fs: add a rw_sem to cover quota flag changes

Two paths to update quota and f2fs_lock_op:

1.
- lock_op
| - quota_update
`- unlock_op

2.
- quota_update
- lock_op
`- unlock_op

But, we need to make a transaction on quota_update + lock_op in #2 case.
So, this patch introduces:
1. lock_op
2. down_write
3. check __need_flush
4. up_write
5. if there is dirty quota entries, flush them
6. otherwise, good to go

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>