Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ecde2823 authored by Al Viro's avatar Al Viro
Browse files

oprofilefs_mkdir() doesn't need superblock argument



it's always equal to ->d_sb of the second argument (parent dentry),
due to either being literally that, or ->d_sb of parent's parent.

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 40437c71
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ op_axp_create_files(struct dentry *root)
		char buf[4];

		snprintf(buf, sizeof buf, "%d", i);
		dir = oprofilefs_mkdir(root->d_sb, root, buf);
		dir = oprofilefs_mkdir(root, buf);

		oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
                oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
+1 −1
Original line number Diff line number Diff line
@@ -105,7 +105,7 @@ static int avr32_perf_counter_create_files(struct dentry *root)

	for (i = 0; i < NR_counter; i++) {
		snprintf(filename, sizeof(filename), "%u", i);
		dir = oprofilefs_mkdir(root->d_sb, root, filename);
		dir = oprofilefs_mkdir(root, filename);

		oprofilefs_create_ulong(root->d_sb, dir, "enabled",
				&counter[i].enabled);
+1 −1
Original line number Diff line number Diff line
@@ -42,7 +42,7 @@ static int op_mips_create_files(struct dentry *root)
		char buf[4];

		snprintf(buf, sizeof buf, "%d", i);
		dir = oprofilefs_mkdir(root->d_sb, root, buf);
		dir = oprofilefs_mkdir(root, buf);

		oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
		oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
+1 −1
Original line number Diff line number Diff line
@@ -160,7 +160,7 @@ static int op_powerpc_create_files(struct dentry *root)
		char buf[4];

		snprintf(buf, sizeof buf, "%d", i);
		dir = oprofilefs_mkdir(root->d_sb, root, buf);
		dir = oprofilefs_mkdir(root, buf);

		oprofilefs_create_ulong(root->d_sb, dir, "enabled", &ctr[i].enabled);
		oprofilefs_create_ulong(root->d_sb, dir, "event", &ctr[i].event);
+3 −3
Original line number Diff line number Diff line
@@ -350,7 +350,7 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
{
	struct dentry *dir;

	dir = oprofilefs_mkdir(root->d_sb, root, "timer");
	dir = oprofilefs_mkdir(root, "timer");
	if (!dir)
		return -EINVAL;

@@ -375,7 +375,7 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
		 * and can only be set to 0.
		 */

		dir = oprofilefs_mkdir(root->d_sb, root, "0");
		dir = oprofilefs_mkdir(root, "0");
		if (!dir)
			return -EINVAL;

@@ -395,7 +395,7 @@ static int oprofile_create_hwsampling_files(struct dentry *root)
		 * space tools.  The /dev/oprofile/hwsampling fs is
		 * provided in that case.
		 */
		dir = oprofilefs_mkdir(root->d_sb, root, "hwsampling");
		dir = oprofilefs_mkdir(root, "hwsampling");
		if (!dir)
			return -EINVAL;

Loading