attributes.c (3eb66e91a25497065c5322b1268cbc3953642227) attributes.c (25efb2ffdf991177e740b2f63e92b4ec7d310a92)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/hfsplus/attributes.c
4 *
5 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 *
7 * Handling of records in attributes tree
8 */

--- 278 unchanged lines hidden (view full) ---

287 case HFSPLUS_ATTR_EXTENTS:
288 pr_err("only inline data xattr are supported\n");
289 return -EOPNOTSUPP;
290 default:
291 pr_err("invalid extended attribute record\n");
292 return -ENOENT;
293 }
294
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * linux/fs/hfsplus/attributes.c
4 *
5 * Vyacheslav Dubeyko <slava@dubeyko.com>
6 *
7 * Handling of records in attributes tree
8 */

--- 278 unchanged lines hidden (view full) ---

287 case HFSPLUS_ATTR_EXTENTS:
288 pr_err("only inline data xattr are supported\n");
289 return -EOPNOTSUPP;
290 default:
291 pr_err("invalid extended attribute record\n");
292 return -ENOENT;
293 }
294
295 /* Avoid btree corruption */
296 hfs_bnode_read(fd->bnode, fd->search_key,
297 fd->keyoffset, fd->keylength);
298
295 err = hfs_brec_remove(fd);
296 if (err)
297 return err;
298
299 hfsplus_mark_inode_dirty(inode, HFSPLUS_I_ATTR_DIRTY);
300 return err;
301}
302

--- 80 unchanged lines hidden ---
299 err = hfs_brec_remove(fd);
300 if (err)
301 return err;
302
303 hfsplus_mark_inode_dirty(inode, HFSPLUS_I_ATTR_DIRTY);
304 return err;
305}
306

--- 80 unchanged lines hidden ---