diff options
author | Steve Nickel <snickel58@gmail.com> | 2012-02-14 00:28:42 -0500 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-02-29 21:53:46 +0100 |
commit | d5e2cf07c388dbd06579ab39672e1bd8b9754e65 (patch) | |
tree | 107cce0364e823e2c6073eb9576e9c6bbf11e4cb /fs/udf/ialloc.c | |
parent | ac1334bfdae33be17ae6ae641bbbd1e6a2f04005 (diff) | |
download | op-kernel-dev-d5e2cf07c388dbd06579ab39672e1bd8b9754e65.zip op-kernel-dev-d5e2cf07c388dbd06579ab39672e1bd8b9754e65.tar.gz |
udf: Init/maintain file entry checkpoint field
In accordance with ECMA 1.67 Part 4, 14.9.15, the checkpoint field
should be initialized to 1 at creation. (Zero is *not* a valid value.)
Signed-off-by: Steven P. Nickel <snickel@focusinfo.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/ialloc.c')
-rw-r--r-- | fs/udf/ialloc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/udf/ialloc.c b/fs/udf/ialloc.c index 05ab481..7e5aae4 100644 --- a/fs/udf/ialloc.c +++ b/fs/udf/ialloc.c @@ -116,6 +116,7 @@ struct inode *udf_new_inode(struct inode *dir, umode_t mode, int *err) iinfo->i_lenEAttr = 0; iinfo->i_lenAlloc = 0; iinfo->i_use = 0; + iinfo->i_checkpoint = 1; if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_AD_IN_ICB)) iinfo->i_alloc_type = ICBTAG_FLAG_AD_IN_ICB; else if (UDF_QUERY_FLAG(inode->i_sb, UDF_FLAG_USE_SHORT_AD)) |