<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/fs/d_path.c, branch v6.1.168</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.1.168'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2022-08-20T15:34:33+00:00</updated>
<entry>
<title>d_path.c: typo fix...</title>
<updated>2022-08-20T15:34:33+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2022-01-31T02:12:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c4c8451147da569a79eff5edcd2864e8ee21d7aa'/>
<id>urn:sha1:c4c8451147da569a79eff5edcd2864e8ee21d7aa</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>dynamic_dname(): drop unused dentry argument</title>
<updated>2022-08-20T15:34:04+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2022-01-30T20:03:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=0f60d28828dd94779c6527440289e1c36a05115a'/>
<id>urn:sha1:0f60d28828dd94779c6527440289e1c36a05115a</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: fix Kernel doc validator complaining</title>
<updated>2021-11-06T20:30:32+00:00</updated>
<author>
<name>Jia He</name>
<email>justin.he@arm.com</email>
</author>
<published>2021-11-05T20:35:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d41b60359ffb24a39c93ea1f4bffaafd651118c3'/>
<id>urn:sha1:d41b60359ffb24a39c93ea1f4bffaafd651118c3</id>
<content type='text'>
Kernel doc validator complains:
  Function parameter or member 'p' not described in 'prepend_name'
  Excess function parameter 'buffer' description in 'prepend_name'

Link: https://lkml.kernel.org/r/20211011005614.26189-1-justin.he@arm.com
Fixes: ad08ae586586 ("d_path: introduce struct prepend_buffer")
Signed-off-by: Jia He &lt;justin.he@arm.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>d_path: make 'prepend()' fill up the buffer exactly on overflow</title>
<updated>2021-09-02T17:07:29+00:00</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2021-07-16T21:01:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b0cfcdd9b9672ea90642f33d6c0dd8516553adf2'/>
<id>urn:sha1:b0cfcdd9b9672ea90642f33d6c0dd8516553adf2</id>
<content type='text'>
Instead of just marking the buffer as having overflowed, fill it up as
much as we can.  That will allow the overflow case to then return
whatever truncated result if it wants to.

Cc: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>getcwd(2): clean up error handling</title>
<updated>2021-05-19T00:15:58+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-17T00:24:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=e4b275531887fef7f7d8a7284bfc32f0fbbd4208'/>
<id>urn:sha1:e4b275531887fef7f7d8a7284bfc32f0fbbd4208</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: prepend_path() is unlikely to return non-zero</title>
<updated>2021-05-19T00:15:58+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-17T00:19:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cf4febc1adc8e5cd11ca3386e1e3ea356e0792f0'/>
<id>urn:sha1:cf4febc1adc8e5cd11ca3386e1e3ea356e0792f0</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: prepend_path(): lift the inner loop into a new helper</title>
<updated>2021-05-19T00:15:57+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-12T20:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=008673ff74a513ac2c282db8825b6118151ee660'/>
<id>urn:sha1:008673ff74a513ac2c282db8825b6118151ee660</id>
<content type='text'>
... and leave the rename_lock/mount_lock handling in prepend_path()
itself

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: prepend_path(): lift resetting b in case when we'd return 3 out of loop</title>
<updated>2021-05-19T00:15:56+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-12T20:21:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2dac0ad17598d1e54a264ed9286fa7bdbd75a97b'/>
<id>urn:sha1:2dac0ad17598d1e54a264ed9286fa7bdbd75a97b</id>
<content type='text'>
preparation to extracting the loop into helper (next commit)

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: prepend_path(): get rid of vfsmnt</title>
<updated>2021-05-19T00:15:56+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-12T20:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=7c0d552fd5aa3527ed01290832ebbe072fa5de52'/>
<id>urn:sha1:7c0d552fd5aa3527ed01290832ebbe072fa5de52</id>
<content type='text'>
it's kept equal to &amp;mnt-&gt;mnt all along.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>d_path: introduce struct prepend_buffer</title>
<updated>2021-05-19T00:14:53+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@zeniv.linux.org.uk</email>
</author>
<published>2021-05-12T18:51:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ad08ae586586ea9e2c0228a3d5a083500ea54202'/>
<id>urn:sha1:ad08ae586586ea9e2c0228a3d5a083500ea54202</id>
<content type='text'>
        We've a lot of places where we have pairs of form (pointer to end
of buffer, amount of space left in front of that).  These sit in pairs of
variables located next to each other and usually passed by reference.
Turn those into instances of new type (struct prepend_buffer) and pass
reference to the pair instead of pairs of references to its fields.

Declared and initialized by DECLARE_BUFFER(name, buf, buflen).

extract_string(prepend_buffer) returns the buffer contents if
no overflow has happened, ERR_PTR(ENAMETOOLONG) otherwise.
All places where we used to have that boilerplate converted to use
of that helper.

Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
</feed>
