On 6/6/23 09:39, Christoph Hellwig wrote:
Add a helper to return the open flags for blkdev_get_by* for passed in
super block flags instead of open coding the logic in many places.
Signed-off-by: Christoph Hellwig <[email protected]>
---
fs/btrfs/super.c | 5 +----
fs/nilfs2/super.c | 7 ++-----
fs/super.c | 15 ++++-----------
include/linux/blkdev.h | 7 +++++++
4 files changed, 14 insertions(+), 20 deletions(-)
Reviewed-by: Hannes Reinecke <[email protected]>
Cheers,
Hannes
_______________________________________________
Linux-f2fs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel