]> git.ipfire.org Git - people/ms/linux.git/commit - fs/open.c
fs: Add support FALLOC_FL_INSERT_RANGE for fallocate
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 25 Mar 2015 04:07:05 +0000 (15:07 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 25 Mar 2015 04:07:05 +0000 (15:07 +1100)
commitdd46c787788d5bf5b974729d43e4c405814a4c7d
tree67ae36b5a9cbbec7b71995417f9350999dca6b9c
parent444a702231412e82fb1c09679adc159301e9242c
fs: Add support FALLOC_FL_INSERT_RANGE for fallocate

FALLOC_FL_INSERT_RANGE command is the opposite command of
FALLOC_FL_COLLAPSE_RANGE that is needed for someone who wants to add
some data in the middle of file.

FALLOC_FL_INSERT_RANGE will create space for writing new data within
a file after shifting extents to right as given length. This command
also has same limitations as FALLOC_FL_COLLAPSE_RANGE in that
operations need to be filesystem block boundary aligned and cannot
cross the current EOF.

Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Ashish Sangwan <a.sangwan@samsung.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/open.c
include/linux/falloc.h
include/uapi/linux/falloc.h