cregit-Linux how code gets into the kernel

Release 4.15 fs/ext4/xattr_user.c

Directory: fs/ext4
// SPDX-License-Identifier: GPL-2.0
/*
 * linux/fs/ext4/xattr_user.c
 * Handler for extended user attributes.
 *
 * Copyright (C) 2001 by Andreas Gruenbacher, <a.gruenbacher@computer.org>
 */

#include <linux/string.h>
#include <linux/fs.h>
#include "ext4_jbd2.h"
#include "ext4.h"
#include "xattr.h"


static bool ext4_xattr_user_list(struct dentry *dentry) { return test_opt(dentry->d_sb, XATTR_USER); }

Contributors

PersonTokensPropCommitsCommitProp
Dave Kleikamp1466.67%125.00%
Christoph Hellwig419.05%125.00%
Andreas Gruenbacher29.52%125.00%
Mingming Cao14.76%125.00%
Total21100.00%4100.00%


static int ext4_xattr_user_get(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, void *buffer, size_t size) { if (!test_opt(inode->i_sb, XATTR_USER)) return -EOPNOTSUPP; return ext4_xattr_get(inode, EXT4_XATTR_INDEX_USER, name, buffer, size); }

Contributors

PersonTokensPropCommitsCommitProp
Dave Kleikamp4570.31%120.00%
Al Viro914.06%120.00%
Andreas Gruenbacher69.38%120.00%
Mingming Cao34.69%120.00%
Christoph Hellwig11.56%120.00%
Total64100.00%5100.00%


static int ext4_xattr_user_set(const struct xattr_handler *handler, struct dentry *unused, struct inode *inode, const char *name, const void *value, size_t size, int flags) { if (!test_opt(inode->i_sb, XATTR_USER)) return -EOPNOTSUPP; return ext4_xattr_set(inode, EXT4_XATTR_INDEX_USER, name, value, size, flags); }

Contributors

PersonTokensPropCommitsCommitProp
Dave Kleikamp5172.86%120.00%
Al Viro912.86%120.00%
Andreas Gruenbacher68.57%120.00%
Mingming Cao34.29%120.00%
Christoph Hellwig11.43%120.00%
Total70100.00%5100.00%

const struct xattr_handler ext4_xattr_user_handler = { .prefix = XATTR_USER_PREFIX, .list = ext4_xattr_user_list, .get = ext4_xattr_user_get, .set = ext4_xattr_user_set, };

Overall Contributors

PersonTokensPropCommitsCommitProp
Dave Kleikamp14572.86%110.00%
Al Viro189.05%220.00%
Andreas Gruenbacher147.04%220.00%
Mingming Cao126.03%110.00%
Christoph Hellwig84.02%220.00%
Stephen Hemminger10.50%110.00%
Greg Kroah-Hartman10.50%110.00%
Total199100.00%10100.00%
Directory: fs/ext4
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.