mirror of
https://github.com/versity/scoutfs.git
synced 2026-02-07 19:20:44 +00:00
scoutfs: fix single block release
The offset comparison in release that was meant to catch wrapping was inverted and accidentally prevented releasing a single block. Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
@@ -268,7 +268,7 @@ static long scoutfs_ioc_release(struct file *file, unsigned long arg)
|
||||
|
||||
start = round_up(args.offset, SCOUTFS_BLOCK_SIZE);
|
||||
end_inc = round_down(args.offset + args.count, SCOUTFS_BLOCK_SIZE) - 1;
|
||||
if (end_inc > start)
|
||||
if (end_inc < start)
|
||||
return 0;
|
||||
|
||||
iblock = start >> SCOUTFS_BLOCK_SHIFT;
|
||||
|
||||
Reference in New Issue
Block a user