diff options
| author | Christoph Hellwig <[email protected]> | 2023-06-08 13:02:50 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-06-12 08:04:04 -0600 |
| commit | 658afed19ceed54a52b9e9e69c0791c8868ff55d (patch) | |
| tree | 9cc7a0c3a565bc8629cfb41e412fbb863fed8e58 /include/linux | |
| parent | 7d9d7d59d44b7e9236d168472aa222b6543fae25 (diff) | |
mtd: block: use a simple bool to track open for write
Instead of propagating the fmode_t, just use a bool to track if a mtd
block device was opened for writing.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Acked-by: Richard Weinberger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/blktrans.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h index 15cc9b95e32b..6e471436bba5 100644 --- a/include/linux/mtd/blktrans.h +++ b/include/linux/mtd/blktrans.h @@ -34,7 +34,7 @@ struct mtd_blktrans_dev { struct blk_mq_tag_set *tag_set; spinlock_t queue_lock; void *priv; - fmode_t file_mode; + bool writable; }; struct mtd_blktrans_ops { |