generic: check that we can't modify immutable files

Make sure that we can't modify an immutable file regardless of whether
the fd was opened before or after the file became immutable.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
8 files changed