orangefs: write range tracking
authorMartin Brandenburg <martin@omnibond.com>
Fri, 14 Dec 2018 20:24:43 +0000 (15:24 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 3 May 2019 18:32:38 +0000 (14:32 -0400)
commit52e2d0a3804c095775b178d6b0707ef6ac8e6d04
treeeff70498b71911fbceb5ecd3c87b81b4e0517edc
parent90fc07065a3505e5a874c5854fd6176beb545e08
orangefs: write range tracking

Attach the actual range of bytes written to plus the responsible uid/gid
to each dirty page.  This information must be sent to the server when
the page is written out.

Now write_begin, page_mkwrite, and invalidatepage keep up with this
information.  There are several conditions where they must write out the
page immediately to store the new range.  Two non-contiguous ranges
cannot be stored on a single page.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c
fs/orangefs/inode.c
fs/orangefs/orangefs-kernel.h